﻿<Page x:ConnectionId='1'
    x:Class="Saku_Overclock.Views.SettingsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:helpers="using:Saku_Overclock.Helpers"
    xmlns:xaml="using:Microsoft.UI.Xaml"
    mc:Ignorable="d">
    <Page.Resources>
        <helpers:EnumToBooleanConverter x:Key="EnumToBooleanConverter" />
    </Page.Resources>
    <Grid>
        <TextBlock x:Uid="Settings_Name" Text="Настройки программы" FontSize="30" Margin="-1,-65,0,0"></TextBlock>
        <ScrollViewer Margin="0,0,-50,0">
            <StackPanel x:ConnectionId='2'
            x:Name="ContentArea">
                <CheckBox x:ConnectionId='3' IsEnabled="True" x:Uid="Settings_Start_Boot" Name="CbStartBoot"                                                         >Автозапуск</CheckBox>
                <CheckBox x:ConnectionId='4' IsEnabled="True" x:Uid="Settings_Start_Mini" Name="CbStartMini"                                                        >Запускаться свёрнутым</CheckBox>
            <CheckBox x:ConnectionId='5' x:Uid="Settings_Apply_Start" Name="CbApplyStart"                                                          >Автоприменять разгон</CheckBox>
            <StackPanel Orientation="Horizontal">
                <CheckBox x:ConnectionId='12' x:Uid="Settings_Auto_Reapply" Name="CbAutoReapply"                                                            >Автоприменять каждые (с)</CheckBox>
                <NumberBox x:ConnectionId='13' Name="nudAutoReapply"                                            Minimum="1" Value="3" Maximum="60" Margin="9,0,0,0"></NumberBox>
            </StackPanel>
                <CheckBox x:ConnectionId='6' IsEnabled="False" x:Uid="Settings_Auto_Updates" Name="CbAutoCheck"                                                        >Автообновления</CheckBox>
            <TextBlock x:Uid="Settings_Personalization" Style="{ThemeResource SubtitleTextBlockStyle}" />
            <StackPanel Margin="{StaticResource SmallTopBottomMargin}">
                <TextBlock x:Uid="Settings_Theme" />

                <StackPanel Margin="{StaticResource XSmallTopMargin}">
                   
                    <RadioButton x:ConnectionId='8'
                        x:Name="Light_sel"
                        x:Uid="Settings_Theme_Light"
                                                                       
                                                                                                                                                             
                                                   
                        FontSize="15"
                        GroupName="AppTheme">
                        <RadioButton.CommandParameter>
                            <xaml:ElementTheme>Light</xaml:ElementTheme>
                        </RadioButton.CommandParameter>
                    </RadioButton>
                    <RadioButton x:ConnectionId='9'
                        x:Name="Dark_sel"
                        x:Uid="Settings_Theme_Dark"
                                                                       
                                                                                                                                                            
                                                  
                        FontSize="15"
                        GroupName="AppTheme">
                        <RadioButton.CommandParameter>
                            <xaml:ElementTheme>Dark</xaml:ElementTheme>
                        </RadioButton.CommandParameter>
                    </RadioButton>

                    <RadioButton x:ConnectionId='10'
                        x:Uid="Settings_Theme_Blue"
                        Content="Тёмно синяя"
                        x:Name="Blue_sel"
                                                  
                        FontSize="15">
                    </RadioButton>

                    <RadioButton x:ConnectionId='11'
                        x:Name="Default_sel"
                        x:Uid="Settings_Theme_Default"
                                                                       
                                                                                                                                                               
                                                     
                        FontSize="15"
                        GroupName="AppTheme">
                        <RadioButton.CommandParameter>
                            <xaml:ElementTheme>Default</xaml:ElementTheme>
                        </RadioButton.CommandParameter>
                    </RadioButton>
                </StackPanel>
            </StackPanel>

            <TextBlock x:Uid="Settings_About" Style="{ThemeResource SubtitleTextBlockStyle}" />

            <StackPanel Margin="{StaticResource XSmallTopMargin}">
                <TextBlock x:ConnectionId='7'                                                           Style="{ThemeResource BodyTextBlockStyle}" />

                <TextBlock
                    x:Uid="Settings_AboutDescription"
                    Margin="{StaticResource XSmallTopMargin}"
                    Style="{ThemeResource BodyTextBlockStyle}" />
                <HyperlinkButton x:Uid="SettingsPage_PrivacyTermsLink" Margin="{StaticResource SettingsPageHyperlinkButtonMargin}" />
            </StackPanel>
        </StackPanel>
        </ScrollViewer>
        
    </Grid>
</Page>

